﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:StoryDesigner.Controls" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions" xmlns:System="clr-namespace:System;assembly=mscorlib" mc:Ignorable="d">


	<Style TargetType="local:StoryArcControl">
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="local:StoryArcControl">
					<Border Background="White" d:DesignWidth="365" d:DesignHeight="353" CornerRadius="10,10,5,5">
						<Border.Effect>
							<DropShadowEffect Direction="275" ShadowDepth="3" BlurRadius="10"/>
						</Border.Effect>
						<Grid>
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="5"/>
								<ColumnDefinition/>
								<ColumnDefinition Width="5"/>
							</Grid.ColumnDefinitions>
							<Grid.RowDefinitions>
								<RowDefinition Height="24"/>
								<RowDefinition/>
								<RowDefinition Height="5"/>
							</Grid.RowDefinitions>
							<Border x:Name="dragLeftMiddle" Grid.Row="1" Background="White" Cursor="SizeWE"/>
							<Border x:Name="dragRightMiddle" Grid.Row="1" Background="White" Cursor="SizeWE" Grid.Column="2"/>
							<Border x:Name="dragTop" CornerRadius="5,5,0,0" Grid.ColumnSpan="3" Cursor="Hand">
								<Border.Background>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="#FF9091FF" Offset="0"/>
										<GradientStop Color="White" Offset="1"/>
									</LinearGradientBrush>
								</Border.Background>
							</Border>
							<Border x:Name="dragLeftBottom" Background="White" CornerRadius="0,0,0,5" Grid.Row="3" Cursor="SizeNESW"/>
							<Border x:Name="dragRightBottom" Background="White" CornerRadius="0,0,5,0" Grid.Row="2" d:LayoutOverrides="GridBox" Grid.Column="2" Cursor="SizeNWSE"/>
							<Border x:Name="dragMiddleBottom" Grid.Row="2" Background="White" Cursor="SizeNS" Grid.Column="1"/>
							<TextBlock TextWrapping="Wrap" VerticalAlignment="Top" d:LayoutOverrides="Width" Grid.Column="1" FontFamily="Arial Black" FontSize="16" HorizontalAlignment="Right" Opacity="0.25" Effect="{StaticResource TitleBlur}" IsHitTestVisible="False"><Run Text="STORY"/><Run FontFamily="Arial" Text="ARC"/></TextBlock>
							<TextBlock x:Name="txtBoxName" TextWrapping="Wrap" VerticalAlignment="Top" Text="{Binding Title, Mode=OneWay}" FontWeight="Bold" UseLayoutRounding="True" Grid.Column="1" IsHitTestVisible="False" FontFamily="Arial Black" FontSize="13.333" Foreground="White">
								<TextBlock.Effect>
									<DropShadowEffect Direction="275" ShadowDepth="1"/>
								</TextBlock.Effect>
							</TextBlock>
							<Grid x:Name="grdContent" Grid.Row="1" Grid.Column="1">
								<Grid.RowDefinitions>
									<RowDefinition Height="24"/>
									<RowDefinition Height="24"/>
									<RowDefinition/>
									<RowDefinition Height="24"/>
									<RowDefinition Height="24"/>
								</Grid.RowDefinitions>
								<Grid.ColumnDefinitions>
									<ColumnDefinition Width="100"/>
									<ColumnDefinition/>
								</Grid.ColumnDefinitions>
								<TextBlock Text="Title:" VerticalAlignment="Center" d:LayoutOverrides="Width"/>
								<TextBox TextWrapping="Wrap" Text="{Binding Title, Mode=TwoWay}" d:LayoutOverrides="Height" Grid.Column="1"/>
								<TextBlock Text="Description:" d:LayoutOverrides="Width, Height" VerticalAlignment="Center" Grid.Row="1"/>
								<TextBlock Text="Created on:" d:LayoutOverrides="Width, Height" VerticalAlignment="Center" Grid.Row="3"/>
								<TextBlock Grid.Column="1" Grid.Row="3" Text="{Binding CreationDate}" d:LayoutOverrides="Width, Height" VerticalAlignment="Center" HorizontalAlignment="Right"/>
								<TextBlock Text="Tasks:" VerticalAlignment="Center" Grid.Row="4" d:LayoutOverrides="Width"/>
								<sdk:GridSplitter x:Name="splitter" HorizontalAlignment="Left" Width="2" Grid.Column="1" Background="#FFE9E9E9" Grid.RowSpan="5" Margin="-4,0,0,0"/>
								<TextBox TextWrapping="Wrap" Text="{Binding Description, Mode=TwoWay}" d:LayoutOverrides="Width, Height" AcceptsReturn="True" Grid.ColumnSpan="2" Grid.Row="2"/>
								<Button x:Name="btnNewTask" Content="New" HorizontalAlignment="Right" Height="20" Grid.Row="4" Grid.Column="1" Visibility="{Binding NewTaskButtonVisibility, RelativeSource={RelativeSource TemplatedParent}}"/>
							</Grid>
						</Grid>
					</Border>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	<Style x:Key="BackButtonStyle" TargetType="Button">
		<Setter Property="Background" Value="#FF1F3B53"/>
		<Setter Property="Foreground" Value="#FF000000"/>
		<Setter Property="Padding" Value="3"/>
		<Setter Property="BorderThickness" Value="1"/>
		<Setter Property="BorderBrush">
			<Setter.Value>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
					<GradientStop Color="#FFA3AEB9" Offset="0"/>
					<GradientStop Color="#FF8399A9" Offset="0.375"/>
					<GradientStop Color="#FF718597" Offset="0.375"/>
					<GradientStop Color="#FF617584" Offset="1"/>
				</LinearGradientBrush>
			</Setter.Value>
		</Setter>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="Button">
					<Grid Width="24" Height="24" UseLayoutRounding="True">
						<VisualStateManager.VisualStateGroups>
							<VisualStateGroup x:Name="CommonStates">
								<VisualState x:Name="Normal"/>
								<VisualState x:Name="MouseOver">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(UIElement.Visibility)">
											<DiscreteObjectKeyFrame KeyTime="00:00:00">
												<DiscreteObjectKeyFrame.Value>
													<Visibility>Visible</Visibility>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Offset)">
											<EasingDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
										</DoubleAnimationUsingKeyFrames>
										<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
											<EasingColorKeyFrame KeyTime="00:00:00" Value="#FFF10000"/>
										</ColorAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Offset)">
											<EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.44"/>
										</DoubleAnimationUsingKeyFrames>
										<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
											<EasingColorKeyFrame KeyTime="00:00:00" Value="#FFFF8600"/>
										</ColorAnimationUsingKeyFrames>
										<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path" Storyboard.TargetProperty="(UIElement.OpacityMask).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
											<EasingColorKeyFrame KeyTime="00:00:00" Value="#3F000000"/>
										</ColorAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Pressed">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(UIElement.Visibility)">
											<DiscreteObjectKeyFrame KeyTime="00:00:00">
												<DiscreteObjectKeyFrame.Value>
													<Visibility>Visible</Visibility>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Disabled"/>
							</VisualStateGroup>
							<VisualStateGroup x:Name="FocusStates">
								<VisualState x:Name="Focused"/>
								<VisualState x:Name="Unfocused"/>
							</VisualStateGroup>
						</VisualStateManager.VisualStateGroups>
						<Ellipse>
							<Ellipse.Stroke>
								<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
									<GradientStop Color="Black" Offset="0"/>
									<GradientStop Color="White" Offset="1"/>
								</LinearGradientBrush>
							</Ellipse.Stroke>
							<Ellipse.Fill>
								<RadialGradientBrush GradientOrigin="0.5,0.808" RadiusX="0.507" RadiusY="0.571" Center="0.501,0.447">
									<GradientStop Color="Black" Offset="1"/>
									<GradientStop Color="White"/>
								</RadialGradientBrush>
							</Ellipse.Fill>
						</Ellipse>
						<Ellipse x:Name="highlighter" StrokeThickness="0" Visibility="Collapsed">
							<Ellipse.Effect>
								<BlurEffect Radius="10"/>
							</Ellipse.Effect>
							<Ellipse.Fill>
								<RadialGradientBrush RadiusX="0.51" RadiusY="1.896">
									<GradientStop Color="Black" Offset="1"/>
									<GradientStop Color="Red" Offset="0.013"/>
								</RadialGradientBrush>
							</Ellipse.Fill>
						</Ellipse>
						<ContentPresenter x:Name="contentPresenter" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}">
							<ContentPresenter.Effect>
								<DropShadowEffect ShadowDepth="1" Direction="275" BlurRadius="2" Opacity="0.75"/>
							</ContentPresenter.Effect>
						</ContentPresenter>
						<Path x:Name="path" Stretch="Fill" StrokeLineJoin="Round" Data="M 416,256C 433.673,256 448,270.327 448,288C 448,289.848 447.843,291.659 447.543,293.421C 439.075,290.037 428.162,288 416.25,288C 404.118,288 393.021,290.113 384.49,293.611C 384.168,291.789 384,289.914 384,288C 384,270.327 398.327,256 416,256 Z " Height="10.427" HorizontalAlignment="Center" Margin="0,0,0,11.319" VerticalAlignment="Bottom" Width="19.083" UseLayoutRounding="False">
							<Path.Fill>
								<RadialGradientBrush Center="0.501,0.866" GradientOrigin="0.501,0.866" RadiusY="0.868" RadiusX="0.544">
									<GradientStop Color="Transparent" Offset="0.241"/>
									<GradientStop Color="White" Offset="1"/>
								</RadialGradientBrush>
							</Path.Fill>
							<Path.OpacityMask>
								<LinearGradientBrush EndPoint="0.49,1.168" StartPoint="0.5,0">
									<GradientStop Offset="1"/>
									<GradientStop Color="White"/>
								</LinearGradientBrush>
							</Path.OpacityMask>
						</Path>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	<Style TargetType="local:StoryTaskObjectiveControl">
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="local:StoryTaskObjectiveControl">
					<Grid x:Name="LayoutRoot" UseLayoutRounding="False"
					>
						<VisualStateManager.CustomVisualStateManager>
							<ei:ExtendedVisualStateManager/>
						</VisualStateManager.CustomVisualStateManager>
						<VisualStateManager.VisualStateGroups>
							<VisualStateGroup x:Name="ExpanderStates" ei:ExtendedVisualStateManager.UseFluidLayout="True">
								<VisualStateGroup.Transitions>
									<VisualTransition GeneratedDuration="0:0:0.25">
										<VisualTransition.GeneratedEasingFunction>
											<CubicEase EasingMode="EaseInOut"/>
										</VisualTransition.GeneratedEasingFunction>
									</VisualTransition>
								</VisualStateGroup.Transitions>
								<VisualState x:Name="Expanded"/>
								<VisualState x:Name="Collapsed"/>
							</VisualStateGroup>
							<VisualStateGroup x:Name="ObjectiveVisibleStates">
								<VisualState x:Name="ObjectiveVisible"/>
								<VisualState x:Name="ObjectiveInvisible">
									<Storyboard>
										<DoubleAnimation Duration="0" To="0.25" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="txtVisibleIndicator" d:IsOptimized="True"/>
									</Storyboard>
								</VisualState>
							</VisualStateGroup>
						</VisualStateManager.VisualStateGroups>
						<Border BorderThickness="0.75,0" CornerRadius="4" Background="{TemplateBinding Background}" BorderBrush="#FF292929">
							<Grid Margin="3,0">
								<Grid.RowDefinitions>
									<RowDefinition Height="Auto"/>
									<RowDefinition/>
								</Grid.RowDefinitions>
								<Border BorderBrush="Black" BorderThickness="0,0,0,0.5" Opacity="0.5"/>
								<Border BorderBrush="White" BorderThickness="0,0.5,0,0" Grid.Row="1" Opacity="0.5"/>
								<Grid x:Name="titleGrid" Margin="2,3">
									<Grid.Effect>
										<DropShadowEffect Direction="275" ShadowDepth="1"/>
									</Grid.Effect>
									<Grid.ColumnDefinitions>
										<ColumnDefinition Width="32"/>
										<ColumnDefinition Width="0.844*"/>
										<ColumnDefinition Width="32"/>
									</Grid.ColumnDefinitions>
									<Button Content="X" d:LayoutOverrides="Height" Style="{StaticResource BackButtonStyle}" HorizontalAlignment="Left"/>
									<TextBlock x:Name="textBlock" TextWrapping="Wrap" Foreground="#FF939393" Grid.Column="1" Text="A potentially long title that should be wrapping around when necessary" TextAlignment="Right" FontFamily="Arial" VerticalAlignment="Center" FontSize="12" FontStretch="UltraCondensed" MaxWidth="250" UseLayoutRounding="True" Margin="0,0,2,0"/>
									<TextBlock x:Name="txtVisibleIndicator" TextWrapping="Wrap" Text="N" d:LayoutOverrides="Width, Height" Grid.Column="2" Margin="2,0,0,0" FontFamily="Webdings" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="26.667" Foreground="#FF939393"/>
								</Grid>
								<StackPanel x:Name="contentStack" Grid.Row="1" >
									<Border Background="#1FFFFFFF" Padding="2,5,2,2" Visibility="Collapsed" BorderThickness="0.5,0,0.5,1" BorderBrush="Black" CornerRadius="2">
										<StackPanel/>
									</Border>
									<Border Padding="2,5,2,2" Background="#1FFFFFFF" BorderThickness="0.5,0,0.5,1" BorderBrush="Black" CornerRadius="2">
										<StackPanel>
											<TextBlock TextWrapping="Wrap" Text="Target Object Type" Foreground="#FF939393"/>
											<ComboBox Margin="0,2,0,0"/>
										</StackPanel>
									</Border>
									<Border Background="#1F000000" Padding="2,5,2,2" BorderThickness="0.5,0,0.5,1" BorderBrush="Black" CornerRadius="2">
										<StackPanel Orientation="Horizontal">
											<TextBlock TextWrapping="Wrap" Text="Object:" Foreground="#FF939393" VerticalAlignment="Center" Margin="0,0,5,0"/>
											<CheckBox Content="Dynamic Instance" VerticalAlignment="Center" Background="#FF939393" Margin="0,0,5,0" Foreground="#FF939393" ToolTipService.ToolTip="When this is checked, the server will create the target object automatically, and for this mission instance only. This means that the object will only be visible to the mission owner.">
												<CheckBox.BorderBrush>
													<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
														<GradientStop Color="#FFA3AEB9" Offset="0"/>
														<GradientStop Color="#FF8399A9" Offset="0.375"/>
														<GradientStop Color="#FF718597" Offset="0.375"/>
														<GradientStop Color="#FF939393" Offset="1"/>
													</LinearGradientBrush>
												</CheckBox.BorderBrush>
											</CheckBox>
											<TextBlock TextWrapping="Wrap" Text="or" Foreground="#FF939393" VerticalAlignment="Center" Margin="0,1,5,0"/>
											<Button Content="..." VerticalAlignment="Center" ToolTipService.ToolTip="Use this button to select an existing object (file or record) on the mission task's target system" Width="20" Height="20"/>
										</StackPanel>
									</Border>
									<Border Padding="2,5,2,2" Background="#1FFFFFFF" BorderThickness="0.5,0,0.5,1" BorderBrush="Black" CornerRadius="2">
										<StackPanel>
											<CheckBox Content="Objective is visible to user" Foreground="#FF939393" ToolTipService.ToolTip="Note: You can have all objectives invisible. But in this case your Task description should outline what the user should do. However, you can only have one visible objective per task."/>
										</StackPanel>
									</Border>
									<Border Background="#1F000000" Padding="2,5,2,2" BorderThickness="0.5,0,0.5,1" BorderBrush="Black" CornerRadius="2">
										<StackPanel>
											<TextBlock TextWrapping="Wrap" Text="Required action" HorizontalAlignment="Left" Foreground="#FF939393"/>
											<ComboBox Margin="0,2,0,0"/>
										</StackPanel>
									</Border>
									<Border Background="#1FFFFFFF" Padding="2,5,2,2" BorderThickness="0.5,0,0.5,1" BorderBrush="Black" CornerRadius="2" Margin="0,0,0,3">
										<StackPanel>
											<Grid>
												<TextBlock TextWrapping="Wrap" Text="Action parameters" Foreground="#FF959595" HorizontalAlignment="Left" d:LayoutOverrides="Height"/>
												<Button Content="+" HorizontalAlignment="Right" Width="22" Height="22"/>
											</Grid>
											<ScrollViewer Margin="0,5,0,0" Height="150" ScrollViewer.VerticalScrollBarVisibility="Auto">
												<ItemsControl x:Name="itmActionParameters"/>
											</ScrollViewer>
										</StackPanel>
									</Border>
								</StackPanel>
							</Grid>
						</Border>
						<Border BorderBrush="White" BorderThickness="0,0.75,0,0" CornerRadius="4">
							<Border.OpacityMask>
								<LinearGradientBrush EndPoint="1.013,0.5" StartPoint="-0.005,0.5">
									<GradientStop Color="Black" Offset="0.5"/>
									<GradientStop Color="#7FFFFFFF" Offset="1"/>
									<GradientStop Color="#7FFFFFFF"/>
								</LinearGradientBrush>
							</Border.OpacityMask>
						</Border>
						<Border BorderBrush="Black" BorderThickness="0,0,0,0.75" CornerRadius="4">
							<Border.OpacityMask>
								<LinearGradientBrush EndPoint="1.01300001144409,0.5" StartPoint="-0.005,0.5">
									<GradientStop Color="Black" Offset="0.5"/>
									<GradientStop Color="#7FFFFFFF" Offset="1"/>
									<GradientStop Color="#7FFFFFFF"/>
								</LinearGradientBrush>
							</Border.OpacityMask>
						</Border>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="Background" Value="#FF3F3F3F"/>
	</Style>
	<Style TargetType="local:StoryTaskControl">
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="local:StoryTaskControl">
					<Border
						BorderBrush="{TemplateBinding BorderBrush}" Background="White" d:DesignWidth="335" d:DesignHeight="550" CornerRadius="5">
						<Border.Effect>
							<DropShadowEffect Direction="275" ShadowDepth="3" BlurRadius="10"/>
						</Border.Effect>
						<Grid>
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="5"/>
								<ColumnDefinition/>
								<ColumnDefinition Width="5"/>
							</Grid.ColumnDefinitions>
							<Grid.RowDefinitions>
								<RowDefinition Height="24"/>
								<RowDefinition/>
								<RowDefinition Height="5"/>
							</Grid.RowDefinitions>
							<Border x:Name="dragLeftMiddle" Grid.Row="1" Background="White" Cursor="SizeWE"/>
							<Border x:Name="dragRightMiddle" Grid.Row="1" Background="White" Cursor="SizeWE" Grid.Column="2"/>
							<Border x:Name="dragTop" CornerRadius="5,5,0,0" Grid.ColumnSpan="3" Cursor="Hand">
								<Border.Background>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="#FF83FFF6" Offset="0"/>
										<GradientStop Color="White" Offset="1"/>
									</LinearGradientBrush>
								</Border.Background>
							</Border>
							<Border x:Name="dragLeftBottom" Background="White" CornerRadius="0,0,0,5" Grid.Row="3" Cursor="SizeNESW"/>
							<Border x:Name="dragRightBottom" Background="White" CornerRadius="0,0,5,0" Grid.Row="2" d:LayoutOverrides="GridBox" Grid.Column="2" Cursor="SizeNWSE"/>
							<Border x:Name="dragMiddleBottom" Grid.Row="2" Background="White" Cursor="SizeNS" Grid.Column="1"/>
							<TextBlock TextWrapping="Wrap" VerticalAlignment="Top" FontFamily="Arial Black" FontSize="16" Opacity="0.25" Effect="{StaticResource TitleBlur}" IsHitTestVisible="False" d:LayoutOverrides="Width" Grid.Column="1" HorizontalAlignment="Right"><Run Text="STORY"/><Run FontFamily="Arial" Text="TASK"/></TextBlock>
							<TextBlock x:Name="txtBoxName" TextWrapping="Wrap" VerticalAlignment="Top" Text="{Binding Title}" FontWeight="Bold" UseLayoutRounding="True" Grid.Column="1" IsHitTestVisible="False" FontFamily="Arial Black" FontSize="13.333" Foreground="White">
								<TextBlock.Effect>
									<DropShadowEffect Direction="275" ShadowDepth="1"/>
								</TextBlock.Effect>
							</TextBlock>
							<Grid x:Name="grdContent" Grid.Row="1" Grid.Column="1">
								<Grid.RowDefinitions>
									<RowDefinition Height="24"/>
									<RowDefinition Height="24"/>
									<RowDefinition Height="Auto"/>
									<RowDefinition Height="24"/>
									<RowDefinition Height="24"/>
								</Grid.RowDefinitions>
								<Grid.ColumnDefinitions>
									<ColumnDefinition Width="100"/>
									<ColumnDefinition/>
								</Grid.ColumnDefinitions>
								<TextBlock Text="Title:" VerticalAlignment="Center" d:LayoutOverrides="Width"/>
								<TextBox TextWrapping="Wrap" Text="{Binding Title, Mode=TwoWay}" d:LayoutOverrides="Height" Grid.Column="1"/>
								<TextBlock Text="Description:" d:LayoutOverrides="Width, Height" VerticalAlignment="Center" Grid.Row="1"/>
								<TextBlock Text="Task State:" d:LayoutOverrides="Width, Height" VerticalAlignment="Center" Grid.Row="3"/>
								<TextBlock Grid.Column="1" Grid.Row="3" Text="{Binding CreationDate}" d:LayoutOverrides="Width, Height" VerticalAlignment="Center" HorizontalAlignment="Right"/>
								<TextBlock Text="Tasks:" VerticalAlignment="Center" Grid.Row="4" d:LayoutOverrides="Width"/>
								<sdk:GridSplitter x:Name="splitter" HorizontalAlignment="Left" Width="2" Grid.Column="1" Background="#FFE9E9E9" Grid.RowSpan="5" Margin="-4,0,0,0"/>
								<TextBox TextWrapping="Wrap" Text="{Binding Description, Mode=TwoWay}" d:LayoutOverrides="Width, Height" AcceptsReturn="True" Grid.ColumnSpan="2" Grid.Row="2" MinHeight="100" MaxHeight="250"/>
								<Button x:Name="btnNewTask" Content="+" HorizontalAlignment="Right" Height="20" Grid.Row="4" Grid.Column="1" Visibility="{Binding NewTaskButtonVisibility, RelativeSource={RelativeSource TemplatedParent}}" Width="20"/>
							</Grid>
						</Grid>
					</Border>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	<Style TargetType="local:ContextMenu">
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="local:ContextMenu">
					<StackPanel Orientation="Vertical"/>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
</ResourceDictionary>
